package com.yonni.demo.controller;

/*
 *
 * @author Yonni
 * @version 1.8.0_201
 * @date 2020-06-24 20:17
 *
 * */

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {

    @RequestMapping("hello/{username}")
    public String hello(@PathVariable("username") String username) {
        return "hello" + username;
    }
}
